﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace CMSMVC4.Areas.Main.Models
{
    public class ListCommentModel
    {
        [Required]
        [RegularExpression("[0-9]*")]
        public int id { get; set; }
    }

    public class CommentNextModel
    {
        [Required]
        [RegularExpression("[0-9]*")]
        public int id { get; set; }

        [Required]
        [RegularExpression("[0-9]*")]
        public string page { get; set; }
    }

    public class  SendCommentModel
    {
        [Required(ErrorMessageResourceType = typeof(MultiResource.Resource), ErrorMessageResourceName = "Comment_data_Required")]
        public string data { get; set; }

        [Required(ErrorMessageResourceType = typeof(MultiResource.Resource), ErrorMessageResourceName = "Comment_email_Requied")]
        [RegularExpression(@"\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*", ErrorMessageResourceType = typeof(MultiResource.Resource), ErrorMessageResourceName = "Comment_email_error")]
        public string email { get; set; }

        [Required]
        [RegularExpression("[0-9]*")]
        public string id { get; set; }
    }
}